﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucHeader.ascx.cs" Inherits="userControls_ucHeader" %>
<%@ Register Assembly="DotNetOpenAuth" Namespace="DotNetOpenAuth.OpenId.RelyingParty"
    TagPrefix="rp" %>
<%@ Register Assembly="DotNetOpenAuth" Namespace="DotNetOpenAuth.OpenId.Extensions.SimpleRegistration"
    TagPrefix="sreg" %>
<div style="height: 100px">
    <div style="float: right; margin: 10px">
        <a href="#" style="margin-left: 15px">Trợ giúp</a>        
        <a href="#" style="margin-left: 15px">Đăng ký</a>
        <%if(Utils.UserUtils.IsLogin)
          { %>
        Xin chào, <%=Utils.UserUtils.FullName %>
        <asp:LinkButton runat="server" ID="LoggedOut" OnClick="LoginStatus1_LoggedOut" Text="Thoát"></asp:LinkButton>
        <br/>
        Vàng: <%=Info.Au %>, Bạc: <%=Info.Ag %>
        <% }else
          { %>
        <div style="clear: both"></div>
     <%--<rp:OpenIdLogin ID="OpenIdLogin1" runat="server" RequestCountry="Request" RequestEmail="Require"
        RequestGender="Require" RequestPostalCode="Require" RequestTimeZone="Require"
        RememberMeVisible="True" PolicyUrl="" TabIndex="1" OnLoggedIn="OpenIdLogin1_LoggedIn" />--%>
    <%--<asp:TextBox runat="server" ID="friendlyUsername"></asp:TextBox>--%>
    <rp:OpenIdButton runat="server" ImageUrl="~/images/yahoo.png" Text="Login with Yahoo!"
        ID="yahooLoginButton" Identifier="https://me.yahoo.com/" OnLoggedIn="OpenIdLogin1_LoggedInY">
        <Extensions>
            <sreg:ClaimsRequest Email="Require" />
        </Extensions>
    </rp:OpenIdButton>
     <rp:OpenIdButton runat="server" ImageUrl="~/images/google.png" Text="Login with Gmail!"
        ID="gmailLoginButtun" Identifier="https://www.google.com/accounts/o8/id" OnLoggedIn="OpenIdLogin1_LoggedInG">
        <Extensions>
            <sreg:ClaimsRequest Email="Require" />
        </Extensions>
    </rp:OpenIdButton>
        <% } %>
    </div>
    
    <div style="clear: both"></div>
</div>